
    <?=form_open(uri_string())?>    
    <table class="form">
        <tr>
            <td  class="label">Tiêu đề</td>
            <td><input type="text" name="ContentTitle" id="title"class="w350" value="<?=$rs->ContentTitle?>"></td>
        </tr>
        <tr>
            <td class="label">Hình ảnh</td>
            <td>
                <input type="text" name="ContentImg" class="w350" value="<?=$rs->ContentImg?>" id="hinhanh">
                <a href="<?=base_url()?>filemanager/index/hinhanh" id="addimages" class="cboxElement" title="Thêm File">
                    <img src="<?=base_url()?>templates/images/icon/attach.png" alt="">
                </a>                 
            </td>
        </tr>       
        <tr>
            <td class="label">Danh mục</td>
            <td>
                <select name="CatID" class="w200">
                    <option value="0">Không xác định danh mục</option>
                <?foreach($postcat as $cat):
                $listsub = $this->news->get_Parent($cat->CatID);
                ?>
                    <option value="<?=$cat->CatID?>" <?=($rs->CatID == $cat->CatID)?'selected="selected"':'';?>><?=$cat->CatName?></option>
                    <?foreach($listsub as $val):?>
                    <option value="<?=$val->CatID?>" <?=($rs->CatID == $val->CatID)?'selected="selected"':'';?>> |__<?=$val->CatName?></option>
                    <?endforeach;?>
                <?endforeach;?>
                </select>
            </td>
        </tr>        
        <tr>
            <td class="label">Hiển thị</td>
            <td><input type="checkbox" name="IsActive" value="1" <?=($rs->CatID = $cat->CatID)?'checked="checked"':'';?>></td>
        </tr>      
        <tr>
            <td class="label">Nội dung ngắn</td>
            <td>
                <textarea style="width: 500px;height: 100px;" name="ContentSmall"><?=$rs->ContentSmall?></textarea>
            </td>
        </tr>        
        <tr>
            <td class="label">Nội dung</td>
            <td>
            <textarea class="full field" cols="" rows="" name="ContentBody" id="wysiwyg-advanced"><?=$rs->ContentBody?></textarea>
            </td>
        </tr>        
        <tr>
            <td colspan="2" align="center">
                <input type="submit" name="bt_submit" value="" class="capnhat">
            </td>
        </tr>
        
    </table>
    <?=form_close()?>

